home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Science / RLaB / help / write < prev    next >
Text File  |  1994-04-25  |  845b  |  35 lines

  1. write:
  2.  
  3. Syntax:    write ( "filename" , a , b , ... )
  4.  
  5. Description:
  6.     
  7.     The write function takes at least two arguments. The 1st
  8.     argument is the string that identifies the file to write to.
  9.     The file is opened with write permission, destroying any
  10.     pre-existing contents. The file is left open so that
  11.     subsequent writes will not destroy the contents.
  12.  
  13.     The arguments after the file name are the entities that will
  14.     be written.
  15.  
  16.     Example:
  17.  
  18.     write( "file_name", a , b , c );
  19.  
  20.     Will open the file named `file_name' in write mode, and write
  21.     the contents of the variables a, b, and c.
  22.  
  23.     write( "stdout" , list );
  24.  
  25.     Will write the contents of the list-object named `list' to the
  26.     standard output.
  27.  
  28.  
  29. See Also: FILES, close, read
  30.  
  31. Future Enhancements (?):
  32.  
  33.     The write function should be able to write out the entire
  34.     contents of the global symbol table.
  35.